Skip to content

fix(gmail): correct draft send tip - #915

Open
y4ho0 wants to merge 1 commit into
googleworkspace:mainfrom
y4ho0:fix/draft-send-tip
Open

fix(gmail): correct draft send tip#915
y4ho0 wants to merge 1 commit into
googleworkspace:mainfrom
y4ho0:fix/draft-send-tip

Conversation

@y4ho0

@y4ho0 y4ho0 commented Aug 28, 2026

Copy link
Copy Markdown

Description

Fixes #914.

The tip printed after creating a Gmail draft now uses the CLI's space-separated Discovery subcommands, passes userId through --params, and sends the draft ID in the request body with --json. The command is kept in a tested constant so the user-facing example stays covered.

Dry Run Output:

{
  "body": {
    "id": "draft-test"
  },
  "dry_run": true,
  "is_multipart_upload": false,
  "method": "POST",
  "query_params": [],
  "url": "https://gmail.googleapis.com/gmail/v1/users/me/drafts/send"
}

Checklist:

  • My code follows the AGENTS.md guidelines (no generated google-* crates).
  • I have run cargo fmt --all to format the code perfectly.
  • I have run cargo clippy -- -D warnings and resolved all warnings. The command is currently blocked by pre-existing warnings on origin/main under Rust 1.97 (first at helpers/script.rs:173); the stricter all-target run reproduces the same baseline findings on an unmodified worktree.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have provided a Changeset file to document my changes.

Validation: focused regression test passed; the full workspace test suite passed (82 library tests and 702 CLI tests); git diff --check passed.

@changeset-bot

changeset-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4ede470

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@googleworkspace/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@googleworkspace-bot googleworkspace-bot added the area: core Core CLI parsing, commands, error handling, utilities label Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Core CLI parsing, commands, error handling, utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(gmail): the --draft tip prints a send command that fails (users.drafts.send --body)

2 participants